package com.song.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author TonySong
 * @date 2024/6/3 0003
 * @time 9:59
 */
@TableName("t_user")
@Data
public class User {

    @TableField(value = "id")
    @TableId(value = "id",type=com.baomidou.mybatisplus.annotation.IdType.AUTO)
    private Integer id;
    private String name;
    private Integer sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String photo;

    @TableField(value = "isDel")
    @TableLogic(delval = "1",value = "0")
    private Integer isDel;
    

}
